<%@page import="bbs.BBSMyba"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%request.setCharacterEncoding("utf-8"); %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<body>
	<jsp:useBean id="bv" class="bbs.BBSVo" />
	<jsp:setProperty property="*" name="bv"/>
	<%
		out.print(bv.getTitle());
		out.print(bv.getContent());
		BBSMyba bbs = new BBSMyba();
		bbs.setBv(bv);
		boolean flag = bbs.insert();
		if(flag){
			out.print("<h1>입력 성공</h1>");
		}else{
			out.print("<h1>입력 실패</h1>");
		}
	%>
</body>
</html>